package com.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by wangyg on 2016/11/10.
 */
public class Model1 implements Serializable{
	private String one;
	private String two;
	private Integer three;
	private Map<String,String> four;
	private List<Integer> five;

	public String getOne() {
		return one;
	}

	public void setOne(String one) {
		this.one = one;
	}

	public String getTwo() {
		return two;
	}

	public void setTwo(String two) {
		this.two = two;
	}

	public Integer getThree() {
		return three;
	}

	public void setThree(Integer three) {
		this.three = three;
	}

	public Map<String, String> getFour() {
		return four;
	}

	public void setFour(Map<String, String> four) {
		this.four = four;
	}

	public List<Integer> getFive() {
		return five;
	}

	public void setFive(List<Integer> five) {
		this.five = five;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;

		Model1 model1 = (Model1) o;

		if (!one.equals(model1.one))
			return false;
		if (!two.equals(model1.two))
			return false;
		if (!three.equals(model1.three))
			return false;
		if (!four.equals(model1.four))
			return false;
		return five.equals(model1.five);

	}

	@Override
	public int hashCode() {
		int result = one.hashCode();
		result = 31 * result + two.hashCode();
		result = 31 * result + three.hashCode();
		result = 31 * result + four.hashCode();
		result = 31 * result + five.hashCode();
		return result;
	}

	@Override
	public String toString() {
		return "Model1{" +
				"one='" + one + '\'' +
				", two='" + two + '\'' +
				", three=" + three +
				", four=" + four +
				", five=" + five +
				'}';
	}
}
